#pragma once
#include "UICommon.h"
#include "WizardWnd.h"

#define THREEDSIMULATEWND_CLASS_NAME			_T("3DSimulateWnd")

class C3DSimulateWnd : public CWizardWnd
{
public:
	C3DSimulateWnd();
	LPCTSTR GetWindowClassName() const { return THREEDSIMULATEWND_CLASS_NAME; };

protected:
	BEGIN_DUINOTIFY_MAPEX(CWizardWnd)
		ON_DUINOTIFY_TYPE("windowinit", OnWindowInit)
		ON_DUINOTIFY_CONTROL("click", "load_porosity_button", OnLoadPorosity)
		ON_DUINOTIFY_CONTROL("click", "load_saturation_button", OnLoadSaturation)
	END_DUINOTIFY_MAPEX()

	void OnWindowInit(TNotifyUI& msg);
	void OnLoadPorosity(TNotifyUI& msg);
	void OnLoadSaturation(TNotifyUI& msg);
	virtual bool OnGoingToNextPage();

private:
	CEditUI* m_pPorosityEdit;
	CEditUI* m_pSaturationEdit;
	CRichEditUI* m_pMsgEdit;

	double GetExpectFromFile(LPCTSTR szFile, double* pdVariance);
};
